﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace FwProject.Distribution.Dto.Statistics
{
    public class DeliverySituationDto
    {
        /// <summary>
        /// 今天已送餐厅
        /// </summary>
        public int Nowadays { get; set; }

        /// <summary>
        /// 一天未配送餐厅
        /// </summary>
        public int OneDay { get; set; }

        /// <summary>
        /// 两天未配送餐厅
        /// </summary>
        public int TwoDays { get; set; }

        /// <summary>
        /// 三至七天未配送
        /// </summary>
        public int ThreeToSevenDays { get; set; }

        /// <summary>
        /// 七天以上未配送
        /// </summary>
        public int OverSevenDays  { get; set; }
    }



    public class DeliverySituationDetailsDto
    {
        /// <summary>
        /// 餐厅名称
        /// </summary>
        public string RestaurantName { get; set; }

        /// <summary>
        /// 最后配送时间
        /// </summary>
        public DateTime? LastDeliveryTime { get; set; }

        /// <summary>
        /// 最后配送
        /// </summary>
        public string LastDelivery { get; set; }


        List<DateTime> times { get; set; }

        /// <summary>
        /// 负责司机名称
        /// </summary>
        public string DriverName { get; set; }


    
        /// <summary>
        /// 餐厅联系人名称
        /// </summary>
        public string RestaurantContactsName { get; set; }

        /// <summary>
        /// 餐厅联系人电话
        /// </summary>
        public string RestaurantContactsPhone { get; set; }

        /// <summary>
        /// 餐厅地址
        /// </summary>
        public string RestaurantAddress { get; set; }
    }

    public enum DeliveryTimeRange
    {
        [Display(Name = "今天已送餐厅")]
        Nowadays,
        [Display(Name = "一天未配送餐厅")]
        OneDay,
        [Display(Name = "两天未配送餐厅")]
        TwoDays,
        [Display(Name = "三至七天未配送")]
        ThreeToSevenDays,
        [Display(Name = "七天以上未配送")]
        OverSevenDays
    }
}
